home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 24 / PC Gamer IT CD 24 1-2.iso / PATCHES / ZNPATCH.EXE / ZNPatch / Addon / subpatch.zfs / ac4g.scr < prev    next >
Text File  |  1997-06-04  |  15KB  |  367 lines

  1. # THIS SCRIPT WAS GENERATED ON 04-03-1996 AT 22:47:22
  2. world A                     # Asylum
  3. room C                      # Examination Room
  4. nodeview 4G                 # Nodeview 4G (1382)
  5. # SCRIPT VERSION: 24.9
  6. puzzle:26999 {                            # AUTO-PRELOAD-OF-ANIMATION 
  7.               results {
  8.                             action:animpreload:27000(ac4ga41c.avi 0 0 0 15)
  9.               }
  10.               flags {
  11.                             DO_ME_NOW
  12.                             ONCE_PER_INST
  13.               }
  14. }
  15.  
  16. # PUZZLES
  17. puzzle:6646 {               # ac4g-ac4f_nav (closed safe)
  18.               criteria { 
  19.                             [6613] = 2                  # state of safe
  20.                             [6645] = 1                  # ac4g-ac4f
  21.               }
  22.               results {
  23.                             action:assign(6645, 0)      # ac4g-ac4f
  24.                             action:dissolve
  25.                             event:change_location(A,C,4F,0)
  26.               }
  27.               flags {
  28.                             ONCE_PER_INST
  29.               }
  30. }
  31. puzzle:6662 {               # combo 0
  32.               criteria { 
  33.                             [6643] = 36                 # AC4G Lever
  34.                             [6682] = 0                  # safe counter
  35.               }
  36.               criteria { 
  37.                             [6682] = 0                  # safe counter
  38.                             [6643] = 35                 # AC4G Lever
  39.               }
  40.               criteria { 
  41.                             [6682] = 0                  # safe counter
  42.                             [6643] = 37                 # AC4G Lever
  43.               }
  44.               results {
  45.                             action:assign(6682, 1)      # safe counter
  46.                             action:assign(6662, 0)      # combo 0
  47.               }
  48.               flags {
  49.                             ONCE_PER_INST
  50.               }
  51. }
  52. puzzle:6663 {               # combo 1
  53.               criteria { 
  54.                             [6643] = 24                 # AC4G Lever
  55.                             [6682] = 1                  # safe counter
  56.               }
  57.               criteria { 
  58.                             [6643] = 23                 # AC4G Lever
  59.                             [6682] = 1                  # safe counter
  60.               }
  61.               criteria { 
  62.                             [6643] = 25                 # AC4G Lever
  63.                             [6682] = 1                  # safe counter
  64.               }
  65.               results {
  66.                             action:assign(6663, 0)      # combo 1
  67.                             action:assign(6682, 2)      # safe counter
  68.               }
  69.               flags {
  70.                             ONCE_PER_INST
  71.               }
  72. }
  73. puzzle:6664 {               # combo 2
  74.               criteria { 
  75.                             [6643] = 36                 # AC4G Lever
  76.                             [6682] = 2                  # safe counter
  77.               }
  78.               criteria { 
  79.                             [6643] = 37                 # AC4G Lever
  80.                             [6682] = 2                  # safe counter
  81.               }
  82.               criteria { 
  83.                             [6643] = 35                 # AC4G Lever
  84.                             [6682] = 2                  # safe counter
  85.               }
  86.               results {
  87.                             action:assign(6664, 0)      # combo 2
  88.                             action:assign(6682, 3)      # safe counter
  89.               }
  90.               flags {
  91.                             ONCE_PER_INST
  92.               }
  93. }
  94. puzzle:6665 {               # combo 3
  95.               criteria { 
  96.                             [6643] = 20                 # AC4G Lever
  97.                             [6682] = 3                  # safe counter
  98.               }
  99.               criteria { 
  100.                             [6643] = 21                 # AC4G Lever
  101.                             [6682] = 3                  # safe counter
  102.               }
  103.               criteria { 
  104.                             [6643] = 19                 # AC4G Lever
  105.                             [6682] = 3                  # safe counter
  106.               }
  107.               results {
  108.                             action:assign(6665, 0)      # combo 3
  109.                             action:assign(6682, 4)      # safe counter
  110.               }
  111.               flags {
  112.                             ONCE_PER_INST
  113.               }
  114. }
  115. puzzle:6667 {               # combo 4
  116.               criteria { 
  117.                             [6643] = 18                 # AC4G Lever
  118.                             [6682] = 4                  # safe counter
  119.               }
  120.               criteria { 
  121.                             [6643] = 19                 # AC4G Lever
  122.                             [6682] = 4                  # safe counter
  123.               }
  124.               criteria { 
  125.                             [6643] = 17                 # AC4G Lever
  126.                             [6682] = 4                  # safe counter
  127.               }
  128.               results {
  129.                             action:assign(6667, 0)      # combo 4
  130.                             action:assign(6682, 5)      # safe counter
  131.                             action:disable_control(6643)               # AC4G Lever
  132.                             action:disable_control(6674)               # open safe
  133.                             action:disable_control(6645)               # ac4g-ac4f
  134.                             background:timer:7494(3)
  135.               }
  136.               flags {
  137.                             ONCE_PER_INST
  138.               }
  139. }
  140. puzzle:6673 {               # INITIAL AC4G
  141.               criteria { 
  142.               }
  143.               results {
  144.                             action:assign(6674, 0)      # open safe
  145.                             action:set_screen(ac4gb11c.tga)
  146.                             action:disable_control(6674)               # open safe
  147.               }
  148.               flags {
  149.                             ONCE_PER_INST
  150.                             DO_ME_NOW
  151.               }
  152. }
  153. puzzle:6677 {               # reset 0
  154.               criteria { 
  155.                             [6643] ! 37                 # AC4G Lever
  156.                             [6643] ! 36                 # AC4G Lever
  157.                             [6643] ! 35                 # AC4G Lever
  158.                             [6682] = 1                  # safe counter
  159.               }
  160.               results {
  161.                             action:assign(6682, 0)      # safe counter
  162.                             action:assign(6677, 0)      # reset 0
  163.               }
  164.               flags {
  165.                             ONCE_PER_INST
  166.               }
  167. }
  168. puzzle:6678 {               # reset 1
  169.               criteria { 
  170.                             [6643] ! 25                 # AC4G Lever
  171.                             [6643] ! 24                 # AC4G Lever
  172.                             [6643] ! 23                 # AC4G Lever
  173.                             [6682] = 2                  # safe counter
  174.               }
  175.               results {
  176.                             action:assign(6678, 0)      # reset 1
  177.                             action:assign(6682, 0)      # safe counter
  178.               }
  179.               flags {
  180.                             ONCE_PER_INST
  181.               }
  182. }
  183. puzzle:6679 {               # reset 2
  184.               criteria { 
  185.                             [6643] ! 37                 # AC4G Lever
  186.                             [6643] ! 36                 # AC4G Lever
  187.                             [6643] ! 35                 # AC4G Lever
  188.                             [6682] = 3                  # safe counter
  189.               }
  190.               results {
  191.                             action:assign(6679, 0)      # reset 2
  192.                             action:assign(6682, 0)      # safe counter
  193.               }
  194.               flags {
  195.                             ONCE_PER_INST
  196.               }
  197. }
  198. puzzle:6680 {               # reset 3
  199.               criteria { 
  200.                             [6643] ! 21                 # AC4G Lever
  201.                             [6643] ! 20                 # AC4G Lever
  202.                             [6643] ! 19                 # AC4G Lever
  203.                             [6682] = 4                  # safe counter
  204.               }
  205.               results {
  206.                             action:assign(6680, 0)      # reset 3
  207.                             action:assign(6682, 0)      # safe counter
  208.               }
  209.               flags {
  210.                             ONCE_PER_INST
  211.               }
  212. }
  213. puzzle:6681 {               # reset 4
  214.               criteria { 
  215.                             [6643] ! 19                 # AC4G Lever
  216.                             [6643] ! 18                 # AC4G Lever
  217.                             [6643] ! 17                 # AC4G Lever
  218.                             [6682] = 5                  # safe counter
  219.               }
  220.               results {
  221.                             action:assign(6681, 0)      # reset 4
  222.                             action:assign(6682, 0)      # safe counter
  223.               }
  224.               flags {
  225.                             ONCE_PER_INST
  226.               }
  227. }
  228. puzzle:6683 {               # safe open (empty) 0
  229.               criteria { 
  230.                             [6682] = 5                  # safe counter
  231.                             [6690] ! 0                  # stomach jar
  232.                             [6674] = 1                  # open safe
  233.               }
  234.               results {
  235.                             action:assign(6674, 0)      # open safe
  236.                             action:assign(6613, 3)      # state of safe
  237.                             action:disable_control(6645)               # ac4g-ac4f
  238.                             action:disable_control(6674)               # open safe
  239.                             action:syncsound(27000 0 ac4fq2tc.raw 22050 16 1 0) #b
  240.                             background:playpreload:6676(27000 0 0 511 319 57 82 1)
  241.               }
  242.               flags {
  243.                             ONCE_PER_INST
  244.               }
  245. }
  246. puzzle:6685 {               # safe open (empty) 1
  247.               criteria { 
  248.                             [6676] = 2                  # open safe (jar) tag 1
  249.               }
  250.               results {
  251.                             action:assign(6676, 0)      # open safe (jar) tag 1
  252.                             event:change_location(A,C,4H,0)
  253.                             action:enable_control(6645)  # ac4g-ac4f
  254.                             action:enable_control(6674)  # open safe
  255.               }
  256.               flags {
  257.                             ONCE_PER_INST
  258.               }
  259. }
  260. puzzle:6686 {               # safe open (jar) 0
  261.               criteria { 
  262.                             [6682] = 5                  # safe counter
  263.                             [6674] = 1                  # open safe
  264.                             [6690] = 0                  # stomach jar
  265.               }
  266.               criteria { 
  267.                             [7199] = 1                  # make opening sound
  268.                             [7200] = 2                  # make opening sound_bg_task
  269.               }
  270.               results {
  271.                             action:assign(6674, 0)      # open safe
  272.                             action:assign(6613, 3)      # state of safe
  273.                             action:assign(7200, 0)      # make opening sound_bg_task
  274.                             action:assign(7199, 0)      # make opening sound
  275.                             action:disable_control(6643)               # AC4G Lever
  276.                             action:disable_control(6674)               # open safe
  277.                             action:disable_control(6645)               # ac4g-ac4f
  278.                             action:disable_control(6672)               # get-drop stomach jar
  279.                             action:syncsound(27000 0 ac4fq2tc.raw 22050 16 1 0) #b
  280.                             background:playpreload:6675(27000 0 0 511 319 0 27 1)
  281.               }
  282.               flags {
  283.                             ONCE_PER_INST
  284.               }
  285. }
  286. puzzle:6688 {               # safe open (jar) 1
  287.               criteria { 
  288.                             [6675] = 2                  # open safe (jar) tag
  289.               }
  290.               results {
  291.                             action:assign(6675, 0)      # open safe (jar) tag
  292.                             action:enable_control(6645)  # ac4g-ac4f
  293.                             action:enable_control(6674)  # open safe
  294.                             event:change_location(A,C,4H,0)
  295.                             action:enable_control(6672)  # get-drop stomach jar
  296.               }
  297.               flags {
  298.                             ONCE_PER_INST
  299.               }
  300. }
  301. puzzle:6844 {               # enable open safe
  302.               criteria { 
  303.                             [6675] ! 1                  # open safe (jar) tag
  304.                             [7494] ! 1                  # combo 4_Timer
  305.                             [6682] = 5                  # safe counter
  306.               }
  307.               results {
  308.                             action:enable_control(6674)  # open safe
  309.                             action:assign(217, 0)
  310.                             action:assign(13, 0)
  311.               }
  312.               flags {
  313.                             ONCE_PER_INST
  314.               }
  315. }
  316. puzzle:7163 {               # make click
  317.               criteria { 
  318.                             [7160] ! [6643]
  319.               }
  320.               results {
  321.                             action:assign(7160, [6643])
  322.                             action:assign(7163, 0)      # make click
  323.                             background:music:7164(0 ac4fq1tc.raw 0)
  324.               }
  325.               flags {
  326.                             ONCE_PER_INST
  327.               }
  328. }
  329. puzzle:7199 {               # make opening sound
  330.               criteria { 
  331.                             [7494] = 2                  # combo 4_Timer
  332.                             [6682] = 5                  # safe counter
  333.               }
  334.               results {
  335.                             action:assign(7494, 0)      # combo 4_Timer
  336.                             background:music:7200(0 ac4gh2tc.raw 0)
  337.               }
  338. }
  339.  
  340. # CONTROLS
  341. control:6643 safe {
  342. animation(ac4ga11c.avi)
  343. rectangle(157 55 333 271)
  344. anim_task_id(6644)
  345. center(250 158)
  346. num_states(40)
  347. dial_inner_radius(36)
  348. radius(53)
  349. zero_radians_offset(9)
  350. pointer_offset(19)
  351. }
  352. control:6645 push_toggle {                # ac4g-ac4f
  353.               flat_hotspot(3,281,503,35)
  354.               cursor(backward)
  355. }
  356. control:6674 push_toggle {                # open safe
  357.               flat_hotspot(229,132,43,44)
  358.               cursor(active)
  359. }
  360. # state 6682 has been reserved as a global variable (safe counter)
  361. # state 6690 has been reserved as a global variable (stomach jar)
  362. # state 7160 has been reserved as a global variable (last number)
  363.  
  364. # AUTO-BACKWARDS PUZZLES AND CONTROLS
  365. control:25500 flat {
  366. }
  367.